package com.cat.visitor;

/**
 * @author cat
 * @version 2025/5/28 14:42
 * @description 具体访问者角色(其他人)
 * @since JDK17
 */

public class Someone implements Person {
    @Override
    public void feed(Dog dog) {
        System.out.println("其他人喂食猫");
    }

    @Override
    public void feed(Cat cat) {
        System.out.println("其他人喂食狗");
    }
}
